package cn.ytr.project.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.ytr.project.domain.Employee;

public interface EmployeeMapper {
	List<Employee> selectAllForList();
	List<Employee> selectForListByDeptId(@Param("deptId")Long deptId);
	List<Employee> selectForListByDeptIdIsNull();
	Employee selectOneById(@Param("id")Long id);
	void insert(Employee employee);
	void update(Employee employee);
	void delete(@Param("id")Long id);
	String[] getIdsByDeptId(@Param("deptId")Long deptId);
	void updateDeptIdInIds(@Param("deptId")Long deptId, @Param("ids")String[] ids);
}
